home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / ddj0897.zip / DYN401.ZIP / b16.dm next >
Text File  |  1997-04-15  |  3KB  |  172 lines

  1.  
  2. # DMAKE makefile for Borland C 16 bit
  3.  
  4. DPP = ..\bin\dpp
  5.  
  6. DPPOPTS = -C $(STRAT)
  7.  
  8.  
  9. all : # setup.dos
  10. %@[
  11.     @echo off
  12.  
  13.     cd kernel
  14.     echo Entering kernel
  15.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  16.     if errorlevel 1 goto done
  17.  
  18.     cd ..\class
  19.     echo Entering class
  20.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  21.     if errorlevel 1 goto done
  22.  
  23.     cd ..\threads
  24.     echo Entering threads
  25.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  26.     if errorlevel 1 goto done
  27.  
  28.     cd ..\generics
  29.     echo Entering generics
  30.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  31.     if errorlevel 1 goto done
  32.  
  33. :done
  34.     cd ..
  35. ]
  36.  
  37. all-scratch : # setup.dos
  38. %@[
  39.     @echo off
  40.  
  41.     md lib
  42.  
  43.     cd kernel
  44.     echo Entering kernel
  45.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) NEW=1
  46.     if errorlevel 1 goto done
  47.  
  48.     cd ..\class
  49.     echo Entering class
  50.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  51.     if errorlevel 1 goto done
  52.  
  53.     cd ..\threads
  54.     echo Entering threads
  55.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  56.     if errorlevel 1 goto done
  57.  
  58.     cd ..\generics
  59.     echo Entering generics
  60.     $(MAKE) $(MAKEFILE) $(MAKEMACROS)
  61.     if errorlevel 1 goto done
  62.  
  63. :done
  64.     cd ..
  65. ]
  66.  
  67. clean : 
  68. %@[
  69.     @echo off
  70.  
  71.     cd kernel
  72.     echo Entering kernel
  73.     $(MAKE) $(MAKETARGETS) $(MAKEFILE) $(MAKEMACROS)
  74.  
  75.     cd ..\class
  76.     echo Entering class
  77.     $(MAKE) $(MAKETARGETS) $(MAKEFILE) $(MAKEMACROS)
  78.  
  79.     cd ..\threads
  80.     echo Entering threads
  81.     $(MAKE) $(MAKETARGETS) $(MAKEFILE) $(MAKEMACROS)
  82.  
  83.     cd ..\generics
  84.     echo Entering generics
  85.     $(MAKE) $(MAKETARGETS) $(MAKEFILE) $(MAKEMACROS)
  86.  
  87.     cd ..\dpp
  88.     echo Entering dpp
  89.     $(MAKE) $(MAKETARGETS) $(MAKEFILE) $(MAKEMACROS)
  90.  
  91.     cd ..\examples\setup
  92.     echo Entering examples (takes a while - please wait)
  93.     call cleanall.bat
  94.  
  95.     cd ..\..
  96.     bin\rm -zq setup.unx setup.dos *.~ *.?~ *.??~ #*.* *.{*
  97. ]
  98.  
  99. realclean : clean
  100.     bin\rm -zq lib\d*.* bin\dpp include\wingens.h include\odbcgens.h
  101.     bin\rm -zq bin\addcr bin\addcr.exe bin\delcr bin\delcr.exe lib\d*.*
  102.  
  103. dist:
  104.     bin\rm -zq dynace*.zip
  105.     zip -r dynace README m32.dm makefile.unx makefile.inc change.log
  106.     zip dynace bin\*.* class\*.* docs\*.* dpp\*.* generics\*.* lib\*.*
  107.     zip dynace include\*.* kernel\*.* threads\*.* utils\*.* windows\*.* odbc\*.*
  108.     zip -r dynace examples\list examples\exam* examples\setup
  109.     zip -r dynace winexam\list winexam\exam* winexam\setup
  110.  
  111.  
  112.     
  113.  
  114. makegens:
  115. %@[
  116.     @echo off
  117.  
  118.     cd kernel
  119.     ..\bin\rm -zq generics.* 
  120.     $(DPP) $(DPPOPTS) -h -i -s *.d
  121.     if errorlevel 1 goto done
  122.     ..\bin\mv generics.h ../include
  123.  
  124.     cd ..\class
  125.     $(DPP) $(DPPOPTS) -h -i -g ../include/generics.h -s *.d
  126.     if errorlevel 1 goto done
  127.     ..\bin\mv generics.h ../include
  128.  
  129.     cd ..\threads
  130.     $(DPP) $(DPPOPTS) -h -i -g ../include/generics.h -s *.d
  131.     if errorlevel 1 goto done
  132.     ..\bin\mv generics.h ../include
  133.  
  134. :done
  135.     cd ..
  136. ]
  137.  
  138.  
  139.  
  140.  
  141. newgens :
  142. %@[
  143.     @echo off
  144.  
  145.     bin\rm include\generics.h
  146.  
  147.     cd kernel
  148.     echo Entering kernel
  149.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) reallynewgens
  150.     if errorlevel 1 goto done
  151.  
  152.     cd ..\class
  153.     echo Entering class
  154.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) newgens
  155.     if errorlevel 1 goto done
  156.  
  157.     cd ..\threads
  158.     echo Entering threads
  159.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) newgens
  160.     if errorlevel 1 goto done
  161.  
  162.     cd ..\dpp
  163.     echo Entering dpp
  164.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) newgens
  165.     if errorlevel 1 goto done
  166.     $(MAKE) $(MAKEFILE) $(MAKEMACROS) generics.c
  167.     if errorlevel 1 goto done
  168.  
  169. :done
  170.     cd ..
  171. ]
  172.